package demo2;

public class Base {
    public int a = 10;
    public int b = 20;

    public Base() {
        System.out.println("父类的构造方法");
    }
    static {
        System.out.println("父类的静态代码块");
    }

    {
        System.out.println("父类的实例代码块");
    }

    public void func1() {
        System.out.println("Base中的func1");
    }
    public void func2() {
        System.out.println("Base中的func2");
    }
}
